package shiro.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import shiro.dao.BaseDaoI;
import shiro.pojo.User;
import shiro.service.UserServiceI;

@Service
@Transactional
public class UserServiceImpl  implements UserServiceI{

	@Resource
	private BaseDaoI<User> userDao;

	public User findByName(String userName) {
		return userDao.get("from User u where u.username=?",new Object[]{userName});
	}
	

	
}
